from flask import Flask, Blueprint

from applications.view.gz.gz import bp as gz
from applications.view.gz.by import bp as by
from applications.view.gz.ch import bp as ch
from applications.view.gz.hd import bp as hd
from applications.view.gz.hp import bp as hp
from applications.view.gz.hz import bp as hz
from applications.view.gz.lw import bp as lw
from applications.view.gz.ns import bp as ns
from applications.view.gz.py import bp as py
from applications.view.gz.th import bp as th
from applications.view.gz.yx import bp as yx
from applications.view.gz.zc import bp as zc



# 创建sys
gz_bp = Blueprint('gz', __name__, url_prefix='/gz')


def register_gz_bps(app: Flask):
    # 在admin_bp下注册子蓝图
    gz_bp.register_blueprint(gz)
    gz_bp.register_blueprint(by)
    gz_bp.register_blueprint(ch)
    gz_bp.register_blueprint(hd)
    gz_bp.register_blueprint(hp)
    gz_bp.register_blueprint(hz)
    gz_bp.register_blueprint(lw)
    gz_bp.register_blueprint(ns)
    gz_bp.register_blueprint(py)
    gz_bp.register_blueprint(th)
    gz_bp.register_blueprint(yx)
    gz_bp.register_blueprint(zc)
    app.register_blueprint(gz_bp)
